<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<html>
<head>
    <title>Title</title>
</head>
<body>
    <table border="1" align="center" width="370">
        <tr>
            <td>编号</td>
            <td>姓名</td>
            <td>性别</td>
            <td>国家</td>
        </tr>
        <c:forEach items="${pb.list}" var="element">
        <tr>
            <td>${element.id}</td>
            <td>${element.name}</td>
            <td>${element.sex}</td>
            <td>${element.country}</td>
        </tr>
        </c:forEach>
        <tr>
            <td colspan="4">
                总计${pb.total}条 总共${pb.pages}页
                <a href="/user/findAll?pageNum=1">首页</a>
                <c:if test="${pb.pageNum>1}">
                    <a href="/user/findAll?pageNum=${pb.pageNum-1}">上一页</a>
                </c:if>
                <c:if test="${pb.pageNum<pb.pages}">
                    <a href="/user/findAll?pageNum=${pb.pageNum+1}">下一页</a>
                </c:if>
                <a href="/user/findAll?pageNum=${pb.pages}">尾页</a>
            </td>
        </tr>
    </table>
</body>
</html>
